package com.open.capacity.tenant.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 租户表实体类
 * @program: open-capacity-platform
 * @author: GuoGaoJu
 * @create: 2023-03-20
 **/

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tenant")
/*
    callSuper=true 用当前类的属性和从父类集继承的属性来生成hashCode
    callSuper=false 默认，只用当前类的属性来生成hashCode
*/
@EqualsAndHashCode(callSuper = true)
public class Tenant extends Model<Tenant> implements Serializable {

    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private Long id;

    private String name;

    private String phone;

    private String email;

    private String tenant_id;

    /**
     * 租户状态：1-申请中、2-活跃、3-注销
     */
    private Integer status = 1;

    private Date create_time;

    private Date update_time;
}
